package com.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 购物车商品表 实体类。
 *
 * @author admin
 * @since 2025-05-30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("f_cart_goods")
public class FCartGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 索引
     */
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 购物车id
     */
    private Integer cartId;

    /**
     * 商品id
     */
    private Integer goodsId;

    @Column(ignore = true)
    private BigDecimal totalPrice;

    /**
     * 商品数量
     */
    private Integer num;

}
